<?php


namespace app\admin\model;


use think\Model;

class Users extends Model
{
    public function getList(){
        return $this->paginate(5);
    }
    public function getUser($no){
        return $this->where('id',$no)->find();
    }
    public function updateUser($data){
        return $this->isUpdate(true)->save($data);
    }
    public function deluser($no){
        return $this->where('id',$no)->delete();
    }
}